<?php

/**
 * CodeSection form.
 *
 * @package    Amawal Invest
 * @subpackage form
 * @author     Ameen Shoman<amin.shoman@gmail.com>
 */
class CodeSectionForm extends BaseCodeSectionForm
{
    public function configure()
    {
        if(!sfContext::getInstance()->getUser()->hasCredential('super_admin')){
            unset($this['branch_id']);
        }

        $this->validatorSchema['department_id']->setOption('required',true);

    }
}
